/**
 * Created by xie on 2018/3/13.
 */
angular.module('module.personalcenter')
    .controller('PersonalcenterController', PersonalcenterController);

PersonalcenterController.$inject = ['$scope','$state','$cookies','$rootScope'];

function PersonalcenterController($scope, $state,$cookies, $rootScope) {
    var vm = this;
    if(!$cookies.get("userInfo")){
        $state.go("login");
    }
    vm.user=JSON.parse($cookies.get("userInfo"));


}